package com.ctrip.corp.obt.shard.handler.strategy;

import static com.ctrip.corp.obt.generic.constants.GenericConstants.DEFAULT;

/**
 * @author marco.zheng
 * @version 1.0
 * @date 2022/02/09
 * @desc 默认表路由，根据tenantId行分表
 * @see
 * @since 1.0
 */
public class DefaultTableRouteStrategy implements ITableRouteStrategy {

    @Override
    public String routeTable(String tenantId) {
        return tenantId;
    }

    @Override
    public String strategyName() {
        return DEFAULT;
    }

}
